package org.jeecg.modules.workservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.workservice.entity.WorkOrderUser;
import org.jeecg.modules.workservice.entity.WorkService;
import org.jeecg.modules.workservice.vo.WorkOrderUserVo;

/**
 * @Description: 工单人员表
 * @Author: jeecg-boot
 * @Date:   2021-08-25
 * @Version: V1.0
 */
public interface IWorkOrderUserMapper extends BaseMapper<WorkOrderUser> {

    /**
     * 根据工单编号查找负责人
     * @param workOrderId
     * @return
     */
    WorkOrderUserVo findWorkOrderUserVo(@Param("workOrderId") String workOrderId);

    /**
     * 修改人员为负责人
     * @param workOrderId  工单编号
     * @param orderUserId 负责人编号
     * @return
     */
    int updWorkOrderUser(@Param("workOrderId") String workOrderId, @Param("orderUserId") String orderUserId);

}
